package 线程.sleep方法.Test01;

public class ThreadTest01 {
    public static void main(String[] args) {
        /*
        try {
            Thread.sleep(1000 * 5);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("第一炸弹！！！");
        */
        for (int i = 0; i < 10; i++){
            System.out.println(Thread.currentThread().getName() + "---->" + i);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
